package cn.bjit.service;

import cn.bjit.model.CouponRecordMessage;
import cn.bjit.request.LockCouponRecordRequest;
import cn.bjit.util.JsonData;
import cn.bjit.vo.CouponRecordVO;

import java.util.Map;

public interface CouponRecordService {
    //分页查询个人优惠券领取记录
    Map<String, Object> page(int page, int size);
    //查询优惠券记录详情
    CouponRecordVO findById(long recordId);
     //锁定优惠券
    JsonData lockCouponRecords(LockCouponRecordRequest recordRequest);
    //释放优惠券记录
    boolean releaseCouponRecord(CouponRecordMessage recordMessage);
}
